//
//  DetaiDescribeStoreTableViewCell.m
//  ABSallRec
//
//  Created by 我演示 on 2019/11/7.
//  Copyright © 2019 Jerry-Fu. All rights reserved.
//

#import "DetaiDescribeStoreTableViewCell.h"

@interface DetaiDescribeStoreTableViewCell ()

/**iconImage*/
@property(nonatomic,weak) UIImageView *iconImageView ;

/**店铺名称*/
@property(nonatomic,weak) UILabel *storeNameLabel ;

/**店铺来源*/
@property(nonatomic,weak) UILabel *storeStoreFromLabel ;

/**storeImageView*/
@property(nonatomic,weak) UIImageView *storePlaceImageView ;

/**地址*/
@property(nonatomic,weak) UILabel *storePlaceLabel ;

/**是否认证的label*/
@property(nonatomic,weak) UILabel *authLabel ;

/**右侧的进店逛逛的按钮*/
@property(nonatomic,weak) UIButton *enterStoreLabel ;

/**好评率*/
@property(nonatomic,weak) UILabel *reputationLabel ;

/**粉丝*/
@property(nonatomic,weak) UILabel  *fansLabel ;

/**商品数量*/
@property(nonatomic,weak) UILabel *storeCountLabel ;
@end

@implementation DetaiDescribeStoreTableViewCell

+(instancetype)cellWIthTableView:(UITableView *)tableVIew {

    static NSString *string = @"string";
    
    DetaiDescribeStoreTableViewCell *cell = [tableVIew dequeueReusableCellWithIdentifier:string];
    
    if (cell == nil) {
        
        cell = [[DetaiDescribeStoreTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:string];
    }
    return cell ;
    
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];

    if (self) {
        [self makeUpUI];
        [self makeSubViewsLayout];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)makeUpUI {
    
//   /**iconImage*/ UIImageView *iconImageView ;
    UIImageView *iconImgeView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tabBar_me_click_icon"]];
    [self.contentView addSubview:iconImgeView];
    self.iconImageView = iconImgeView ;
    
    UILabel *storeNameLabel = [[UILabel alloc] initWithTextString:@"Mamieamie" andTextColor:[UIColor colorWithHexString:@"#232321"] andTextFont:14];
    storeNameLabel.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:14];
    [self.contentView addSubview:storeNameLabel];
    self.storeNameLabel = storeNameLabel;

    

//    /**店铺来源*/ *storeStoreFromLabel ;
    
    UILabel *storeStoreLabel = [[UILabel alloc]initWithTextString:@"来自土耳其的高端品质服装店" andTextColor:[UIColor colorWithHexString:@"#232321"] andTextFont:12];
    storeStoreLabel.font = [UIFont fontWithName:@"PingFang-SC-Medium" size:12];
    [self.contentView addSubview:storeStoreLabel];
    self.storeStoreFromLabel = storeStoreLabel ;
    
//
//    /**storeImageView*/
//    @property(nonatomic,weak) UIImageView *storePlaceImageView ;
    UIImageView *storePlaceImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tabBar_me_click_icon"]];
    

    [self.contentView addSubview:storePlaceImageView];
    self.storePlaceImageView = storePlaceImageView;
    
    
//
//    /**地址*/
//    @property(nonatomic,weak) UILabel *storePlaceLabel ;
    UILabel *storePlaceLabel = [[UILabel alloc] initWithTextString:@"土耳其" andTextColor:[UIColor colorWithHexString:@"#232321"] andTextFont:12];
    storePlaceLabel.font = [UIFont fontWithName:@"Source Han Sans CN" size:12];
    [self.contentView addSubview:storePlaceLabel];
    self.storePlaceLabel = storePlaceLabel;
    
    
//
//    /**是否认证的label*/
//    @property(nonatomic,weak) UILabel *authLabel ;
    UILabel *authLabel = [[UILabel alloc] initWithString: @"企业店铺" andTextColor:[UIColor colorWithHexString:@"#FFFFFF"] andFontString:@"PingFang SC" andFontFloat:11] ;
    [self.contentView addSubview:authLabel];
    self.authLabel = authLabel;
//
//    /**右侧的进店逛逛的按钮*/
//    @property(nonatomic,weak) UIButton *enterStoreLabel ;
//
//    /**好评率*/
//    @property(nonatomic,weak) UILabel *reputationLabel ;
//
//    /**粉丝*/
//    @property(nonatomic,weak) UILabel  *fansLabel ;
//
//    /**商品数量*/
//    @property(nonatomic,weak) UILabel *storeCountLabel ;
    
    
}

-(void)makeSubViewsLayout {
    // 店铺image
    
    
    [self.authLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.top.offset(0);
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
